<?php

    if (!class_exists('shopPage')) {
         require_once(CORE_INCLUDE_DIR.'/shopPage.php');
     }

     class shop_express_manager extends shopPage
     {
         var $noCache = true;

         function shop_express_manager()
         {
             parent::shopPage();
             $this->view_dir = dirname(__FILE__).'/view';
         }

         function expressQuery()
         {
             $express_no = trim($_GET['express_no']);
             $objTrack = &$this->system->loadModel('plugins/express_manager/track');
             $trackInfo = $objTrack->getTrackInfoByExpressId($express_no);
             $objLogistic = &$this->system->loadModel('plugins/express_manager/logistic');
             $logisticInfo = $objLogistic->getFieldById($express_no);
             $logiItems = $objLogistic->getItemsByLogiId($express_no);
             $this->pagedata['data'] = $trackInfo;
             $this->pagedata['logistic'] = $logisticInfo;
             $this->pagedata['logiItems'] = $logiItems;
             //error_log(print_r($this->pagedata,true),3,__FILE__.'.'.__FUNCTION__.'.log');
             $this->display($this->view_dir.'/shop/express_query_result.html');
         }
     }
?>